package com.dwxt.cdms.util;

/**
 * @description: TODO
 * @className: DataUtil
 * @author: yanlong
 * @createDate: 2021/05/13 17:41
 * @version: v1.0
 */
public class DataUtil {

    public static String strToDouble(String bloodSugar) {
        double doubleBloodSugar = Double.parseDouble(bloodSugar);
        doubleBloodSugar = doubleBloodSugar / 18;
        //保留一位小数点，四舍五入
        String result = String.format("%.1f", doubleBloodSugar);
        return result;
    }
}
